package view.events;
import flash.events.Event;
import graphic.RenderObject;
import view.PropertyPanel;

enum E_PhysicPropertyType
{
	ADD_PHYSIC_POINT;
}

enum E_OtherInteractionType
{
	SELECT_RENDER_OBJECT_FOR_CREATION(name:String, file:String);
	CHANGE_RENDER_OBJECT_PROPERTY(ro:RenderObject, type:E_PropertyType, value:String);
	CHANGE_PHYSIC_PROPERTY(type:E_PhysicPropertyType, value:String);
	EDIT_RENDER_OBJECT_PHYSIC_BODY(ro:RenderObject);
}

/**
 * @author Damien Mabin
 */

class LevelEditorViewOtherEvent extends Event
{
	public static var EVENT : String = "LevelEditorViewOtherEvent";
	
	public var m_Type 		: E_OtherInteractionType;
	
	public function new(_Type:E_OtherInteractionType) 
	{
		super(EVENT, true);
		m_Type = _Type;
	}
	
	override public function clone():Event
    {
		var res : LevelEditorViewOtherEvent = new LevelEditorViewOtherEvent(m_Type);
        return res;
    }
	
	override public function toString():String
    {
        return EVENT + "(" + m_Type + ")";
    }
}